/**
 * Created by JetBrains WebStorm.
 * User: Silence
 * Date: 3/18/12
 * Time: 5:21 PM
 * To change this template use File | Settings | File Templates.
 */

Ext.define('EM.view.event.AddPeopleView', {
    extend: 'Ext.window.Window',
    alias : 'widget.addpeopleview',
    id: 'addpeopleview',
    title : 'Add People',
    layout: 'fit',
    autoShow: true,
    closeAction: 'hide',
    iconCls: 'icon-user',
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                items: [
                    {
                        xtype: 'textfield',
                        name : 'name',
                        fieldLabel: 'Name'
                    },
                    {
                        xtype: 'textfield',
                        name : 'description',
                        fieldLabel: 'Description'
                    },
                    {
                        xtype: 'textfield',
                        name : 'email',
                        fieldLabel: 'Email'
                    },
                    {
                        xtype: 'textfield',
                        name : 'contact_no',
                        fieldLabel: 'Contact No.'
                    },
                    {
                        xtype: 'textfield',
                        name: 'position',
                        fieldLabel: 'Position',
                        value: 'None'
                    },
                    {
                        xtype: 'combo',
                        name: 'type',
                        fieldLabel: 'Type',
                        valueField: 'Participant',
                        store: ['Participant', 'Organizer', 'Sponsor']
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Add',
                action: 'add'
            }
        ];

        this.callParent(arguments);
    }
});